import{d as k,a9 as y,k as $,b as n,o as a,aT as g,ah as B,e as s,c as r,g as d,aO as u,t as m,u as f,_ as C}from"./DrFvzlh8agutd.js";const v=["disabled"],w={key:0},N={key:3},A=k({__name:"tw-button",props:{class:{},icon:{},symbol:{},right:{type:Boolean},disabled:{type:Boolean},title:{}},emits:["action","click"],setup(e,{emit:o}){const l=e,i=o,b=y(()=>l.class??"oui-button"),c=$();function h(t){i("action",{target:c.value}),i("click",t)}return(t,V)=>(a(),n("button",{ref_key:"root",ref:c,class:B(b.value),disabled:e.disabled,onClick:g(h,["prevent"])},[e.right&&(e.title||t.$slots.default)?(a(),n("span",w,[d(m(e.title),1),u(t.$slots,"default")])):s("",!0),e.icon?(a(),r(f(C),{key:1,name:e.icon},null,8,["name"])):s("",!0),e.symbol?(a(),r(f(T),{key:2,name:e.symbol},null,8,["name"])):s("",!0),!e.right&&(e.title||t.$slots.default)?(a(),n("span",N,[d(m(e.title),1),u(t.$slots,"default")])):s("",!0)],10,v))}}),S=["data-f7-icon"],T=k({__name:"tw-symbol",props:{name:{}},setup(e){return(o,l)=>(a(),n("i",{class:"f7","data-f7-icon":e.name,"aria-hidden":"true"},null,8,S))}});export{A as _};